package com.bjdd.jdy.ui.sign;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import rx.Observable;


/**
 * Created by Administrator on 2017/5/3.
 */

public class SignModel implements SignContract.Model {

    @Override
    public Observable<BaseResult<String>> sign(String token, String sign, String orderNo, String carrierId, String code) {
        return Api.getInstance().service
                .signOrder(token,sign,orderNo,carrierId,code)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<BaseResult<String>> sendSMSCode(String token, String orderNo, String carrierId) {
        return Api.getInstance().service
                .sendSMSCode(token,orderNo,carrierId)
                .compose(RxSchedulers.io_main());
    }
}
